package com.study.project.config.redis;

import java.util.List;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Data;

/**
 * @program: studyProject
 * @description:
 * @author: yangjie
 * @create: 2024-04-13 13:46
 **/
@Data
@Component
@ConfigurationProperties(prefix = "spring.redis")
public class RedisConfigProperties {
    private String host;
    private String port;
    private String password;
    private int database;
    private Cluster cluster;
}

@Data
class Cluster {
    private List<String> nodes;
}